<?php
use yii\helpers\Html;
?>
<link rel="stylesheet" href="/statics/css/detail.css">
<!-- breadcrumb area end here	 -->
<!-- portfolio area start here	 -->
<div class="blog-details-area section">
                <div class="single-post box-shadow">
                    <div class="post-title">
                        <h3><?=$data['title']?></h3>
                    </div>
                    <div class="blog-meta clearfix">
                        <ul class="left">
                            <!--  <li><span class="fa fa-eye"></span><p><?/*=$data['view_total']*/?></p></li>-->
                            <li> <span class="fa fa-calendar-check-o clendar"></span> <p><?=date( "Y-m-d H:i:s", $data['release_at'])?> </p>
                            </li>
                        </ul>
                        <ul class="right tags">
                            <?php if ($data['tags']):?>
                                <?php foreach ($data['tags'] as $item):?>
                                    <?php if ($item['text']!=''):?>
                                        <li><a href="<?=$item['tag_url']?>" target="_blank"><?=$item['text']?></a></li>
                                    <?php endif;?>
                                <?php endforeach;?>
                            <?php endif;?>
                        </ul>
                    </div>
                    <div class="blog-content markdown-body" onselectstart="return false" style="-moz-user-select:none;">
                       <?=$data['content']?>
                    </div>
                    <div class="copy_right">
                         <h3>版权声明</h3>
                         <p <?php if($data['author_name']!='')?>><span>作者：</span><?=$data['author_name']?></p>
                          <p <?php if($data['source']!='')?>><span>来源：</span><?=$data['source']?></p>
                    </div>
                    <div class="row share-content">
                            <div class="pull-right share" id="share-2">
                                <span class="s-txt">分享：</span>

                            </div>
                    </div>
                    <div class="pagination-area">
                        <div class="pagination">
                            <ul class="row">
                                <li class="prev pull-left">
                                <?php if($data['article']['prev']['link']):?>
                                    <a href="<?=$data['article']['prev']['link']?>" target="_blank">
                                        <i class="fa fa-angle-double-left"></i> <?=$data['article']['prev']['title']?> </a>
                                <?php endif;?>
                                </li>
                                <li class="next pull-right">
                                    <?php if($data['article']['next']['link']):?>
                                    <a href="<?=$data['article']['next']['link']?>" target="_blank"><?=$data['article']['next']['title']?> <i class="fa fa-angle-double-right"></i></a>
                                      <?php endif;?>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <!--评论-->
                        <div class="commentAll">
                            <h4>评论区</h4>
                            <!--评论区域 begin-->
                            <div class="comment-lsit">
                                <div class="liveList contact_top">
                                    <div class="col-md-6"><label for="">昵称</label><input type="text" class="atrEdit" name="nick_name"></div>
                                    <div class="col-md-6"><label for="">个人网站</label><input class="atrEdit"  type="text"  name="website"></div>
                                </div>
                                <div class="reviewArea clearfix">
                                    <textarea name="content" type="textarea" class="atrEdit content-comment comment-input" placeholder="请写入你的评论"></textarea>
                                    <a href="javascript:;" class="plBtn">评论</a>
                                </div>
                            </div>
                            <!--评论区域 end-->
                            <!--回复区域 begin-->
                            <div class="comment-show">
                               <div class="contentInner">
                               </div>
                                <p class="loadmore"><a href="javascript:">加载更多</a></p>
                            </div>
                            <!--回复区域 end-->
                        </div>
                </div>
</div>

<div style="display: none" id="commentTemplate">
    <div class="comment-show-con clearfix">
        <div class="comment-show-con-list clearfix">
            <div class="pl-text clearfix">
                <a href="#" class="comment-size-name">#{nick_name}:</a>
                <span class="my-pl-con">#{content}</span>
            </div>
            <div class="date-dz clearfix">
                <span class="date-dz-left pull-left comment-time">#{created_at}</span>
                <div class="date-dz-right pull-right comment-pl-block">
                  <!--  <a href="javascript:;"  class="seeComment reback" attr="comment_#{id}">查看评论</a>-->
                    <a href="javascript:;" class="date-dz-pl pl-hf hf-con-block pull-left reply" user_id="#{id}" attr="reply_#{id}">回复</a>
                    <span class="pull-left date-dz-line">|</span>
                    <a href="javascript:;" class="date-dz-z pull-left do-aprase"><i class="fa fa-thumbs-o-up"></i>赞 (<i class="z-num">#{like_total}</i>)</a>
                </div>
            </div>
            <div  class="reply_list" id="reply_#{id}" style="display: none">
                    <div class="liveList">
                        <div class="col-md-6"><label for="">昵称</label><input type="text" class="atrEdit" name="nick_name"></div>
                        <div class="col-md-6"><label for="">个人网站</label><input class="atrEdit"  type="text"  name="website"></div>
                    </div>
                    <div class="rebackInput"><textarea placeholder="回复：#{nick_name}" name="content" class="atrEdit"></textarea></div>
                    <p class="inner-content-operate right">
                        <a href="javascript:" class="do-reply" content_id="#{id}" reply_id="#{id}">回复</a>
                        <a href="javascript:" class="cancel-reply" content_id="#{id}">取消</a></p>
                </div>
            <div class="contentall comment_#{id}">
                #{html}
            </div>
            <div class="hf-list-con"></div>
        </div>
    </div>
</div>

<div style="display:none;" id="subCommentTemplate">
    <div class="comment-show-con clearfix">
        <div class="comment-show-con-list clearfix">
            <div class="pl-text clearfix">
                <a href="javascript:;" class="comment-size-name">#{nick_dialog}:</a>
                <span class="my-pl-con">#{content}</span>
            </div>
            <div class="date-dz clearfix">
                <span class="date-dz-left pull-left comment-time">#{created_at}</span>
                <div class="date-dz-right pull-right comment-pl-block">
                    <!--  <a href="javascript:;"  class="seeComment reback" attr="comment_#{id}">查看评论</a>-->
                   <a href="javascript:;" class="date-dz-pl pl-hf hf-con-block pull-left reply" user_id="#{id}" attr="reply_#{id}">回复</a>
                    <span class="pull-left date-dz-line">|</span>
                    <a href="javascript:;" class="date-dz-z pull-left do-aprase"><i class="fa fa-thumbs-o-up"></i>赞 (<i class="z-num">#{like_total}</i>)</a>
                </div>
            </div>
            <div  class="reply_list" id="reply_#{id}" style="display: none">
                <div class="liveList">
                    <div class="col-md-6"><label for="">昵称</label><input type="text" class="atrEdit" name="nick_name"></div>
                    <div class="col-md-6"><label for="">个人网站</label><input class="atrEdit"  type="text"  name="website"></div>
                </div>
                <div class="rebackInput"><textarea placeholder="回复：#{nick_name}" name="content" class="atrEdit"></textarea></div>
                <p class="inner-content-operate right">
                    <a href="javascript:" class="do-reply" content_id="#{id}" reply_id="#{reply_id}">回复</a>
                    <a href="javascript:" class="cancel-reply" content_id="#{id}">取消</a></p>
            </div>
            <div class="hf-list-con"></div>
        </div>
    </div>
</div>
<!-- 百度分享 -->
    <script>
        var article_id = '<?=$data['id']?>';
        var  type = 1;
    </script>
<?=$this->registerJs("
requirejs(['/statics/js/public/control.js?'+(new Date()).getTime()], function () {
        require(['detail']);;
    });
",\yii\web\View::POS_END)?>